package com.sky.es.util;

/**
 * @author yangsk
 */
public class StringCovertDouble {

    public static Double convertToDouble(String lat) {
        String[] parts = lat.split("[°'\" ]");
        Double degree = Double.parseDouble(parts[0]);
        Double minutes = Double.parseDouble(parts[1]) / 60.0;
        Double seconds = Double.parseDouble(parts[2]) / 3600.0;
        return degree + minutes + seconds;
    }
}
